﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace FinalDetection
{

    public partial class FrmConfiguration : Form
    {
        private static int aduHandle;
        public FrmConfiguration()
        {
            InitializeComponent();
        }

        #region Show List Button
        private void ShowListButton_Click(object sender, EventArgs e)
        {
            Connect_ADU.ShowList();
        }
        #endregion

        #region ADU Count Button
        private void ADUCountButton_Click(object sender, EventArgs e)
        {
            Connect_ADU.CountADU();
        }

        #endregion

        #region Get ADU Button
        private void GetADUButton_Click(object sender, EventArgs e)
        {
            Connect_ADU.GetADU();
        }
        #endregion

        #region Open s/no Button
        private void OpenSNOButton_Click(object sender, EventArgs e)
        {

            //Opens the ADU device by its serial number 
            string argpSerialNumber = TextBoxOpen.Text;
            Connect_ADU.OpenOrClose(argpSerialNumber);
           // aduHandle = Module.OpenAduDeviceBySerialNumber(argpSerialNumber, 1);
        }
        #endregion
    }
}
